package models

import "gorm.io/gorm/schema"

type Setting struct {
	Id int64 `json:"id" gorm:"primaryKey"`
	SqlTimeFields

	Key    string `json:"key" gorm:"type:varchar(64);uniqueIndex"`
	Value  string `json:"value" gorm:"type:varchar(512)"`
	Remark string `json:"remark" gorm:"type:varchar(512)"`
}

func (s *Setting) TableName(namer schema.Namer) string {
	return namer.TableName("setting")
}
